package org.lendoo.web.pojo.vo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.lendoo.web.annotation.JsonBoolean2Integer;

/**
 * RelUserAddress的vo类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "RelUserAddressVo", description = "RelUserAddress的vo类")
public class RelUserAddressVo {
    @ApiModelProperty(value = "主键", dataType = "Integer")
    private Integer id;

    @ApiModelProperty(value = "用户id", dataType = "Integer")
    private Integer userId;

    @ApiModelProperty(value = "地址id", dataType = "Integer")
    private Integer addressId;

    @ApiModelProperty(value = "是否是默认地址。1表示是，0表示否", dataType = "Integer")
    @JsonDeserialize(using = JsonBoolean2Integer.class, as = Integer.class, contentAs = boolean.class)
    private Integer isDefault;

    @ApiModelProperty(value = "详细地址", dataType = "String")
    private String detail;

    @ApiModelProperty(value = "省", dataType = "String")
    private String province;

    @ApiModelProperty(value = "市", dataType = "String")
    private String city;

    @ApiModelProperty(value = "县", dataType = "String")
    private String region;

    @ApiModelProperty(value = "真实姓名", dataType = "String")
    private String realName;

    @ApiModelProperty(value = "手机号", dataType = "String")
    private String mobile;

    @ApiModelProperty(value = "页数", dataType = "Integer")
    private Integer pageNo;

    @ApiModelProperty(value = "每页数量", dataType = "Integer")
    private Integer pageSize;
}